export default {
  computed: {
    stateContent() {
      return function (row) {
        if (this.$store.state.shoppingStateEnums.length === 0) {
          return "N/A";
        }
        let p = this.$store.state.shoppingStateEnums.find(
          (x) => x.value === row.shoppingState
        );
        return p.label;
      };
    },
    stateColor() {
      return function (row) {
        if (this.$store.state.shoppingStateEnums.length === 0) {
          return "N/A";
        }
        let p = this.$store.state.shoppingStateEnums.find(
          (x) => x.value === row.shoppingState
        );
        return p.color;
      };
    },
  },
};
